﻿package common.dao.connection;

import java.sql.Connection;

/**
 * 
 * 数据库连接提供器接口
 * 
 */
public interface IConnectionProvider {
	/**
	 * 获取连接
	 * @return Connection or Session
	 * @throws Exception
	 */
	public Connection getConnection() throws Exception;

	/**
	 * 关闭连接
	 * @return 是否关闭成功
	 * @throws Exception
	 */
	public Object close() throws Exception;
	
}
